package web_constants

const HEADER_CONTENT_TYPE = "Content-Type"

const HEADER_ACCEPT_LANGUAGE = "Accept-Language"

// 请求方法
const REQUEST_METHOD_GET = "GET"

const REQUEST_METHOD_POST = "POST"

// 请求头内容类型
const REQUEST_HEADER_CONTENT_TYPE_JSON = "application/json"

const REQUEST_HEADER_CONTENT_TYPE_FORM = "application/x-www-form-urlencoded"

// 响应头内容类型
const RESPONSE_HEADER_CONTENT_TYPE_HTML = "text/html;charset=utf-8"

const RESPONSE_HEADER_CONTENT_TYPE_JSON = "application/json;charset=utf-8"

const RESPONSE_HEADER_CONTENT_TYPE_SCRIPT = "text/javascript;charset=utf-8"

// JSON 结果字段
const JSON_RESULT_DATA = "data"

const JSON_RESULT_TOTAL = "total"

const JSON_RESULT_ERROR_CODE = "errorCode"

const JSON_RESULT_ERROR_MSG = "errorMsg"

// 响应头页面代码参数
const RESPONSE_HEADER_PAGE_CODE = "x-page-code"

// 响应头页面名称参数
const RESPONSE_HEADER_PAGE_NAME = "x-page-name"

// 响应头页面 URL 参数
const RESPONSE_HEADER_PAGE_URL = "x-page-url"

// 响应头 URL 模式参数
const RESPONSE_HEADER_URL_PATTERN = "x-url-pattern"
